/*
 * =====================================================================================
 *
 *       Filename:  atan2.cpp
 *
 *    Description:  atan2 example 
 *
 *        Version:  1.0
 *        Created:  12/11/2011 05:26:41 PM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  YOUR NAME (), 
 *        Company:  
 *
 * =====================================================================================
 */
#include <stdio.h>
#include <math.h>

int main ()
{
  double x, y, result;
  x = 0.0;
  y = -10.0;
  result = atan2 (y,x) * 180 / M_PI;
  printf ("The arc tangent for (x=%lf, y=%lf) is %lf degrees\n", x, y, result );
  return 0;
}
